home *** CD-ROM | disk | FTP | other *** search
/ Trusted Irix /B 4.0.4 / Trusted-Irix B-4.0.1.iso / dist / eoe1.idb / usr / include / sys / ipc.h.z / ipc.h
C/C++ Source or Header  |  1992-04-03  |  1KB  |  56 lines

  1. #ifndef __SYS_IPC_H__
  2. #define __SYS_IPC_H__
  3.  
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7.  
  8. /*    Copyright (c) 1984 AT&T    */
  9. /*      All Rights Reserved      */
  10.  
  11. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T    */
  12. /*    The copyright notice above does not evidence any       */
  13. /*    actual or intended publication of such source code.    */
  14.  
  15. /*#ident    "@(#)kern-port:sys/ipc.h    10.2"*/
  16. #ident    "$Revision: 3.10 $"
  17. /* Common IPC Access Structure */
  18.  
  19. #include <sys/types.h>
  20.  
  21. struct ipc_perm {
  22.     ushort    uid;    /* owner's user id */
  23.     ushort    gid;    /* owner's group id */
  24.     ushort    cuid;    /* creator's user id */
  25.     ushort    cgid;    /* creator's group id */
  26.     ushort    mode;    /* access modes */
  27.     ushort    seq;    /* slot usage sequence number */
  28.     key_t    key;    /* key */
  29. };
  30.  
  31. /* Common IPC Definitions. */
  32. /* Mode bits. */
  33. #define    IPC_ALLOC    0100000        /* entry currently allocated */
  34. #define    IPC_CREAT    0001000        /* create entry if key doesn't exist */
  35. #define    IPC_EXCL    0002000        /* fail if key exists */
  36. #define    IPC_NOWAIT    0004000        /* error if request must wait */
  37.  
  38. /* Keys. */
  39. #define    IPC_PRIVATE    (key_t)0    /* private key */
  40.  
  41. /* Control Commands. */
  42. #define    IPC_RMID    0    /* remove identifier */
  43. #define    IPC_SET        1    /* set options */
  44. #define    IPC_STAT    2    /* get options */
  45.  
  46. #ifndef _KERNEL
  47.  
  48. extern key_t     ftok(const char *, char);
  49.  
  50. #ifdef __cplusplus
  51. }
  52. #endif
  53.  
  54. #endif /* !_KERNEL */
  55. #endif /* !__SYS_IPC_H__ */
  56.